package eurostar.com.functional;

import java.io.FileInputStream;


//import org.eclipse.jdt.internal.compiler.ast.Javadoc;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.AjaxElementLocatorFactory;
import org.openqa.selenium.support.pagefactory.ElementLocatorFactory;

//import jxl.Sheet;
//import jxl.Workbook;


public class pagefactory extends pageobjects {
	public static void search() throws  Exception
	{
		WebDriver driver=new InternetExplorerDriver();
        driver.get("www.eurostar.com");
        WebElement unitedkingdomlink=driver.findElement(By.linkText("United Kingdom"));
        unitedkingdomlink.click(); 
        pageobjects page = PageFactory.initElements(driver, pageobjects.class);
		
			page.journey();
			//page.frame1();
        
		  //page.journey1();       
	      //page.dateselection();
	      //page.click();
	}
		
     public static void main(String[] args) throws Exception
     {
    	 search();
         
     }

	private static void jour() {
		// TODO Auto-generated method stub
		
	}
}

	

